package cn.sample.module.sys;

import cn.sample.common.result.JsonResult;
import cn.sample.system.service.UserSupport;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <h2></h2>
 *
 * <p></p>
 *
 * @author HKD
 */
@RestController
@RequestMapping("/sys/user")
public class SysUserController {

    @Resource
    private UserSupport userSupport;

    @RequestMapping("/find")
    public JsonResult find(){
        return JsonResult.ok(userSupport.list());
    }

    @RequestMapping("/del")
    public JsonResult del(){
        return JsonResult.ok("删除用户成功");
    }

}
